import { Component } from "react";
import React from "react";
import { List, Footer, Button } from "antd-mobile";
import withRouter from "./common/WithRouter";

class ChangeUser extends Component {
  constructor(props) {
    super(props);
    this.state = {};
  }
  handleClick = () => {
    const { na } = this.props.router;
    na("/");
  };

  render() {
    const ret = (
      <Button color="primary" fill="solid" onClick={this.handleClick}>
        页面跳转这个是类组件
      </Button>
    );
    return ret;
  }
}

export default withRouter(ChangeUser);
